﻿using System;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using NUnit.Framework;
using OurSite.Business.Picture;
using OurSite.Business.Repositories;


namespace OurSite.Tests
{
    [TestFixture]
    public class PeopleRepository_Fixture
    {

        [TestFixtureSetUp]
        public void TestFixtureSetUp()
        {
            NHibernateSessionManager.Instance.Initialize();
        }

        [Test]
        public void Can_get_all_People()
        {
            IPeopleRepository repository = new PeopleRepository();
            var people = repository.GetAllPeople();

            Assert.Greater(people.Count, 0);
        }

    }
}
